-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract UploadSessionLister interface #4375
extract UploadSessionLister interface #4375
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
The |
I wonder if 👀 hm graph uses uploadSessions to represent ongoing uploads ... and the properties hm |
@aduffeck I completely changed the upload interface. I adopted UploadSessions to differentiate it from tus uploads. similar to tus.Info every UploedSession has a The ListUploadSessions takes a filter that allows filtering the uploads by expired status, isprocessing flag or id. This allows all current usages and even more granular listing of uploads by the cli. I also added the antivirus state, which is set during postprocessing. This can be used to list all not yet scanned uploads ... your opinion? |
0ceef88
to
69ec64f
Compare
tracking the tus upload-expires bug in #4379 |
670b4c2
to
e8b0c90
Compare
lgtm, as discussed in zoom 👍 |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
5837476
to
f37fe42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good but the linter is not happy
Additional Question: Did you run a full-ci
pipeline on ocis to make sure these changes don't break ocis pipeline?
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@kobergj I hope I made the linter happy ;-) will create an ocis bump right away |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
ocis pr was green, will rebase #4148 now |
This is a little cleanup of the UploadProgress interface I had to introduce in #4148
The UploadSessionLister interface allows listing and filtering existing UploadSessions by id, processing or expired state. This can be used by the ocis cli to purge expired AND processed uploads, list uploads that have expired but are still processing etc.
The UploadSession Interface could be extended to include processing steps like the antivirus scan outcome etc, but currently that is stored by the processing service. This may need more thoughts before changing it. I think it makes sense to persist tho outcome of processing steps in the upload session metadata. Unfortunately, we currently store processing stata and scan outcome in the node metadata, not the upload metadata. This will change ofter merging #4148 , then we can think about if and where to persist the processing state ...
For now, I think this PR is ready.